// 迭代器 Iterator

const set = new Set(['foo','bar','baz'])

const iterator = set[Symbol.iterator]() // 迭代器

console.log(iterator.next())
console.log(iterator.next())
console.log(iterator.next())
